
#include "server_copy.hpp"


int main(){
    Buffer buff;
    std::string str = "zhan";
    buff.write_buf(str.c_str(), str.size());
    buff.print();
    buff.write_buf_move(str.c_str(), str.size());
    buff.write_buf_move(str.c_str(), str.size());
    buff.print();
    
    char arr[6]= {0};
    buff.read_buf_move(arr, 5);
    buff.print();
    std::cout<< arr<<std::endl;

    return 0;
}